package com.whmnx.my.ui.adapter;

import android.view.ViewGroup;

import androidx.databinding.ViewDataBinding;

import com.whmnx.my.databinding.ItemViewpagerCaiBinding;
import com.whmnx.my.ui.viewmodel.ViewPagerCaiwuItemViewModel;

import me.tatarka.bindingcollectionadapter2.BindingViewPagerAdapter;

/**
 *
 * @author goldze
 * @date 2018/6/21
 */

public class ViewPagerCaiwuBindingAdapter extends BindingViewPagerAdapter<ViewPagerCaiwuItemViewModel> {
    @Override
    public void onBindBinding(final ViewDataBinding binding, int variableId, int layoutRes, int position, ViewPagerCaiwuItemViewModel item) {
        super.onBindBinding(binding, variableId, layoutRes, position, item);
        ItemViewpagerCaiBinding _binding = (ItemViewpagerCaiBinding) binding;
        item.setBinding(_binding);

    }

    @Override
    public void destroyItem(ViewGroup container, int position, Object object) {
        super.destroyItem(container, position, object);
    }
}
